package com.baofu.paycore.manager.model;

import lombok.*;

import java.util.Date;

/**
 * 账务响应对象
 *
 * User: xin deng  Date: 16/7/5 ProjectName: paycore Version: 1.0
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
public class AccountRespBO {

    /**
     * 请求流水
     */
    private String requestNo;

    /**
     * 状态
     */
    private String status;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误描述
     */
    private String errorMsg;

    /**
     * 会计日
     */
    private Date accDate;

    /**
     * 凭证号
     */
    private String receiptNo;

    /**
     * 冻结码
     */
    private String freezeCode;

    /**
     * 是否为实际通知结果
     * 默认为受理结果
     */
    private boolean realRtn = false;

    public AccountRespBO(String status, String errorCode, String errorMsg, Date accDate, String receiptNo,
                         String requestNo, boolean realRtn) {
        this.status = status;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.accDate = accDate;
        this.receiptNo = receiptNo;
        this.requestNo = requestNo;
        this.realRtn = realRtn;
    }

    public AccountRespBO(String status, String errorCode, String errorMsg, String requestNo, boolean realRtn) {
        this.status = status;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.requestNo = requestNo;
        this.realRtn = realRtn;
    }

    public AccountRespBO(String status, String errorCode, String errorMsg, Date accDate, String requestNo,
                         boolean realRtn){
        this.status = status;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.accDate = accDate;
        this.requestNo = requestNo;
        this.realRtn = realRtn;
    }

    public AccountRespBO(String status, String errorCode, String errorMsg, Date accDate, String receiptNo,
                         String freezeCode, String requestNo, boolean realRtn) {
        this.status = status;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.accDate = accDate;
        this.receiptNo = receiptNo;
        this.freezeCode = freezeCode;
        this.requestNo = requestNo;
        this.realRtn = realRtn;
    }
}
